import { defineStore } from "pinia"

export const useMainStore = defineStore('main', {
  state: () => ({
    nav: []
  }),
  actions: {
    setNav(v) {
      this.nav = v
    },
    clearNav() {
      this.nav = []
    }
  },
  // persist: {
  //   storage: sessionStorage,
  //   pick: ["nav"],
  // },
})